package clientproject.window;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import serverproject.model.RankEnum;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class CreateAccountWindow
{

	private JFrame	frame;
	private JTextField idField;
	private JTextField passWordField;
	private JTextField nameField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args)
	{
		EventQueue.invokeLater(new Runnable() {
			public void run()
			{
				try
				{
					CreateAccountWindow window = new CreateAccountWindow();
					window.frame.setVisible(true);
				} catch (Exception e)
				{
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public CreateAccountWindow()
	{
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize()
	{
		frame = new JFrame();
		frame.setBounds(100, 100, 254, 297);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.getContentPane().setLayout(null);
		
		JLabel lblID = new JLabel("I        D");
		lblID.setBounds(26, 30, 57, 15);
		frame.getContentPane().add(lblID);
		
		JLabel label = new JLabel("비밀번호");
		label.setBounds(26, 66, 57, 15);
		frame.getContentPane().add(label);
		
		JLabel lblNewLabel = new JLabel("직      급");
		lblNewLabel.setBounds(26, 155, 57, 15);
		frame.getContentPane().add(lblNewLabel);
		
		JLabel lblNewLabel_1 = new JLabel("이      름");
		lblNewLabel_1.setBounds(26, 109, 57, 15);
		frame.getContentPane().add(lblNewLabel_1);
		
		idField = new JTextField();
		idField.setBounds(95, 27, 116, 21);
		frame.getContentPane().add(idField);
		idField.setColumns(10);
		
		passWordField = new JTextField();
		passWordField.setBounds(95, 63, 116, 21);
		frame.getContentPane().add(passWordField);
		passWordField.setColumns(10);
		
		nameField = new JTextField();
		nameField.setBounds(95, 106, 116, 21);
		frame.getContentPane().add(nameField);
		nameField.setColumns(10);
		
		JButton btnNewButton = new JButton("계정생성");
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		btnNewButton.setBounds(72, 226, 97, 23);
		frame.getContentPane().add(btnNewButton);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setBounds(95, 152, 116, 21);
		frame.getContentPane().add(comboBox);
		comboBox.setModel(new DefaultComboBoxModel(RankEnum.values()));
	}
}
